#ifndef QUALITYWIDGET_H
#define QUALITYWIDGET_H

#pragma once
#include <QFileDialog>
#include <QFile>
#include <QDir>
#include <QFileInfo>
#include <QWidget>
#include <QShowEvent>
#include <QTableWidgetItem>
#include <QMessageBox>
#include <QPixmap>
#include "adminwidget.h"

namespace Ui {
class QualityWidget;
}

class QualityWidget : public QWidget
{
    Q_OBJECT

public:
    explicit QualityWidget(QWidget *parent = nullptr);
    ~QualityWidget();

protected:
    void showEvent(QShowEvent *event) override;

private slots:
    void onTableClicked(int row, int column);
    void on_pushButton_pass_clicked();
    void on_pushButton_fail_clicked();
    void on_pushButton_back_clicked();
    void on_pushButton_cancel_clicked();

private:
    void updateDisplay();
    void updateStatus(const QString &status);

signals:
    void sendDisWidget(QString);

private:
    Ui::QualityWidget *ui;
    int selectrow;
    AdminWidget *adminWidget = nullptr;
};

#endif // QUALITYWIDGET_H
